package com.haruhinav.entity.vo;

import com.haruhinav.entity.User;
import lombok.Data;


//这是发送给前端的同一个格式对象
@Data
public class ResultMessageVO {
    private int type;//1 单聊 2 群聊
    private String message;
    private String dateTime;
    private boolean isSystem;
    private Object data;


    public void fill(int type,boolean isSystem,String message){
        fill(type,isSystem,message,null,null);
    }

    public void fill(int type,boolean isSystem,String message,String dataTime,Object data){
        this.type =type;
        this.message = message;
        this.dateTime = dataTime;
        this.isSystem = isSystem;
        this.data = data;
    }


}
